package cn.uexpo.lhz.common.oldUtils;

import java.util.List;
/**
 * 分页返回结果
 */
public class PageResult {
    /**
     * 当前页码
     */
    private int page;
    /**
     * 每页数量
     */
    private int limit;
    /**
     * 记录总数
     */
    private long totalSize;
    /**
     * 页码总数
     */
    private int totalPage;
    /**
     * 数据模型
     */
    private List<?> content;

    public void setContent(List<?> content) {
        this.content = content;
    }


    public int getPage() {
        return page;
    }

    public int getLimit() {
        return limit;
    }

    public long getTotalSize() {
        return totalSize;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public List<?> getContent() {
        return content;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public void setLimit(int pageSize) {
        this.limit = limit;
    }

    public void setTotalSize(long totalSize) {
        this.totalSize = totalSize;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}
